
package com.scs.application.modules.upms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.scs.application.core.service.IBaseService;
import com.scs.application.modules.upms.entity.WxmpAccount;
import com.scs.application.modules.upms.request.WxmpAccountQueryRequest;
import me.chanjar.weixin.mp.api.WxMpService;
import me.chanjar.weixin.mp.config.WxMpConfigStorage;

import java.util.List;
import java.util.Map;

/**
 * 服务号 service 接口
 */
public interface WxmpAccountService extends IBaseService<WxmpAccount> {

    List<WxmpAccount> list(WxmpAccountQueryRequest request);


    IPage<WxmpAccount> page(WxmpAccountQueryRequest request);


    /**
     * 根据appid 创建公众号服务对象
     *
     * @param appId
     * @return
     */
    WxMpService getWxMpServiceFromAppId(String appId);

    /**
     * 获取所有微信配置
     * @return
     */
    Map<String, WxMpConfigStorage> getAllWxMpConfig();
}
